import { createStore } from "vuex";
import { i_state_store } from "./type";

export default createStore<i_state_store>({
  state: {
    username: "wxj",
  },
  mutations: {
    setusername(state, value: string) {
      // console.log(typeof value);

      state.username = value;
    },
  },
  actions: {},
  modules: {},
});
